<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>

	<title>确认您的授权</title>
</head>
<body>
<div class="limiter">
	<div class="container-login100" th:style="'background-image:url(' + @{/images/bg-01.jpg} + ');'">
		<div class="wrap-login100 p-l-55 p-r-55 p-t-65 p-b-54">
			<!--/*@thymesVar id="action" type="java.lang.String"*/-->
			<form class="login100-form validate-form" action="/oauth/authorize" method="post">
                <span class="login100-form-title p-b-49"
					  th:text="${client.clientId} + ' 请求授权，该应用将访问您的资源信息。将会取得如下权限：' + ${scopeName}">
                    请求授权
                </span>
				<div class="wrap-input100 validate-input m-b-23">
					<input type="hidden" name="user_oauth_approval" value="true">
					<div style="display: none" th:each="scope : ${scopes}">
						<input type="hidden" th:name="'scope.' + ${scope}" value="true">
					</div>
					<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
				</div>

				<div class="container-login100-form-btn">
					<div class="wrap-login100-form-btn">
						<div class="login100-form-bgbtn"></div>
						<button type="submit" class="login100-form-btn">确认授权</button>
					</div>
				</div>

			</form>
		</div>
	</div>
</div>

<!--    <nav class="navbar navbar-default container-fluid">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">开放平台第三方授权</a>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-5">
                <p class="navbar-text navbar-right">
                    <a href="#" th:href="@{/login}">登陆</a>
                    <a href="#">授权管理</a>
                    <a href="#">申请接入</a>
                </p>
            </div>
        </div>
    </nav>
    <div style="padding-top: 30px;width: 300px; color: #555; margin:0px auto;">
        <form id='confirmationForm' name='confirmationForm' th:action="@{/oauth/authorize}" method='post'>
            <input name='user_oauth_approval' value='true' type='hidden'/>
            <p><a th:href="${app.website}" target="_blank" th:text="${app.appName}">应用</a> 将获得以下权限：</p>
            <ul class="list-group">
                <li class="list-group-item"> <span>
                        <input type="hidden" th:name="${s.key}" value="true" th:each="s : ${scopes}"/>
                        <input type="checkbox" disabled checked="checked" th:each="s : ${scopes}"/> <label th:text="#{${s.key}}"
                                                                                                           th:each="s : ${scopes}"></label> </span>
                </li>
            </ul>
            <p class="help-block">授权后表明你已同意 服务协议</p>
            <button class="btn btn-success pull-right" type="submit" id="write-email-btn">授权</button>
            </p>
        </form>
    </div>-->
</body>

</html>